﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleData
{
	public class DGen
	{
		private Runtime runtime;

		public DGen( Runtime runtime )
		{
			this.runtime = runtime;
		}

		/// <summary>
		/// 
		/// </summary>
		public Runtime Runtime
		{
			get { return this.runtime; }
		}

		public string GetRandomName()
		{
			return this.GetRandomName( null );
		}

		public string GetRandomName( string prefix )
		{
			if ( String.IsNullOrEmpty( prefix ) )
				return Guid.NewGuid().ToString().Replace( "-", "" );
			else
				return String.Concat( prefix, " ", Guid.NewGuid().ToString().Replace( "-", "" ) );
		}
	}
}
